function showMenu(){
	var menu = document.getElementById("menu");
	if (menu.offsetLeft < 0 ){
		menu.className = "show";
		document.getElementById("menu-wrapper").className = "";
		document.getElementById("mainContent").className="contentMoveRight";
		document.getElementById("mobileHeader").className="contentMoveRight";
		document.getElementById("whole").style.width = screen.width + "px";
	}

	if (menu.offsetLeft == 0){
		hideMenu();
	}

	
}

function hideMenu(){
	var menu = document.getElementById("menu");
	document.getElementById("menu-wrapper").className = "undisplayed";
	document.getElementById("mainContent").className="";
	document.getElementById("mobileHeader").className="";
	document.getElementById("whole").style.width = "auto";
	if (menu.offsetLeft == 0 ){
		menu.className = "";
	}
}

function showLogin(){
	var login = document.getElementById("login_wrapper");
	login.className = "";
	hideMenu();
}

function hideLogin(){
	var login = document.getElementById("login_wrapper");
	login.className = "undisplayed";
	document.body.className ="";
}

function register_rooms(){
	var login = document.getElementById("login_wrapper");
	login.className = "";
	hideMenu();
}
